package org.schrag.sbbdroid.data;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

public class Connections implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String ident;
	private String usedUrl;	
	private List<Connection> connections = new LinkedList<Connection>();
	/**
	 * @return the ident
	 */
	public String getIdent() {
		return ident;
	}
	/**
	 * @param ident the ident to set
	 */
	public void setIdent(String ident) {
		this.ident = ident;
	}
	/**
	 * @return the usedUrl
	 */
	public String getUsedUrl() {
		return usedUrl;
	}
	/**
	 * @param usedUrl the usedUrl to set
	 */
	public void setUsedUrl(String usedUrl) {
		this.usedUrl = usedUrl;
	}
	/**
	 * @return the connections
	 */
	public List<Connection> getConnections() {
		return connections;
	}
	/**
	 * @param connections the connections to set
	 */
	public void setConnections(List<Connection> connections) {
		this.connections = connections;
	}
	
	public String toString() {
		return ident + " #Connections: " + this.connections.size();		
	}

}
